import React from 'react';

import Icon from './icon';
import styled, {keyframes} from 'styled-components';

const Wrapper = styled.div`
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 10vw;
  color: #999;
`;

const round = keyframes`
  from {transform: rotate(0);}
  to {transform: rotate(360deg);}
`;

const RoundIcon = styled(Icon)`
  animation: ${round} 1s ease infinite
`;

const PageLoading = () => {
  return (
    <Wrapper><RoundIcon type="loading"/></Wrapper>
  );
};

export default PageLoading;